
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
# from fastapi.middleware.cors import CORSMiddleware

from src.html_service.api import html_router
from src.helper.api import helper_router

app = FastAPI(
    title="frontend"
)

# app.add_middleware(
#     CORSMiddleware,
#     allow_origins=["*"],
#     allow_methods=["*"],
#     allow_headers=["*"],
# )

app.include_router(html_router)
app.include_router(helper_router)

app.mount("/static", StaticFiles(directory="src/static"), name="static")
